<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<input v-model="name"/>
			<button @click="toSub"> 提交</button>
		</div>
		<script src="js/mui.min.js"></script>
		<script src="js/vue.min.js"></script>
		<script src="js/url.js"></script>
		<script src="js/ajax.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			
			
			function GetQueryString(name) {
				var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
				var r = window.location.search.substr(1).match(reg);
				if (r != null) return unescape(r[2]);
				return null;
			}
			
			var code = GetQueryString("code");
			var app = new Vue({
				el: '#app',
				data:{
					name:'',
				},
				methods: {
					toSub: function() {
						var _this = this;
						ajax({
							url: "https://www.ccclkj.cn:2025/sends/getOpenId",
							type: 'post',
							data: {
								code:code,
								// name:_this.name,
							},
							dataType: 'json',
							timeout: 10000,
							contentType: "application/json",
							success: function(data) {
								if(data.flag){}
							},
						})
					},
				}, 
				created: function() {
					
		
				}
			})
		</script>
	</body>
</html>